"use strict";
class Animal {
    name;
    color;
    _age;
    #type;
    constructor(name, color, _age, type) {
        this.name = name;
        this.color = color;
        this._age = _age;
        this.#type = type;
    }
    show() {
        console.log(this.name, this.color, this._age);
    }
}
class Cat extends Animal {
    info() {
        console.log(this.name);
        this.show();
        console.log(this.name);
        this.show();
    }
}
const a = new Animal("小白", "白色", 3, 'Dog');
console.log(a.name);
a.show();
const c = new Cat("小猫", "花色", 2, 'Cat');
console.log(c.name);
c.info();
